package ch02;

public class Exercise10 {
	public static void main(String [] args){
		int a = 8;
		int b = 3;
		int c3 = 9;
		String c = Integer.toBinaryString(a);
		System.out.println(Integer.toBinaryString(a));
		System.out.println(Integer.toBinaryString(b));
		System.out.println(Integer.toBinaryString(c3));
		int c1 = a & b ;
		int c2 = a|b;
		System.out.println(c1);
		System.out.println(c2);
		System.out.println(a^c3);
		int d = a^c3;
		Integer.toBinaryString(d);
	}
}
